home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 033a / sendcom_.zip / CONIO.H < prev    next >
Text File  |  1988-08-29  |  2KB  |  98 lines

  1. /*    conio.h
  2.  
  3.     Direct MSDOS console input/output.
  4.  
  5.     Copyright (c) Borland International 1987,1988
  6.     All Rights Reserved.
  7. */
  8. #if    !defined(__VIDEO)
  9. #define __VIDEO
  10.  
  11. #if __STDC__
  12. #define _Cdecl
  13. #else
  14. #define _Cdecl    cdecl
  15. #endif
  16.  
  17. #ifndef    __OLDCONIO__
  18.  
  19. struct text_info {
  20.     unsigned char winleft;
  21.     unsigned char wintop;
  22.     unsigned char winright;
  23.     unsigned char winbottom;
  24.     unsigned char attribute;
  25.     unsigned char normattr;
  26.     unsigned char currmode;
  27.     unsigned char screenheight;
  28.     unsigned char screenwidth;
  29.     unsigned char curx;
  30.     unsigned char cury;
  31. };
  32.  
  33. enum text_modes { LASTMODE=-1, BW40=0, C40, BW80, C80, MONO=7 };
  34.  
  35. #if    !defined(__COLORS)
  36. #define __COLORS
  37.  
  38. enum COLORS {
  39.     BLACK,            /* dark colors */
  40.     BLUE,
  41.     GREEN,
  42.     CYAN,
  43.     RED,
  44.     MAGENTA,
  45.     BROWN,
  46.     LIGHTGRAY,
  47.     DARKGRAY,        /* light colors */
  48.     LIGHTBLUE,
  49.     LIGHTGREEN,
  50.     LIGHTCYAN,
  51.     LIGHTRED,
  52.     LIGHTMAGENTA,
  53.     YELLOW,
  54.     WHITE
  55. };
  56. #endif
  57.  
  58. #define BLINK        128    /* blink bit */
  59.  
  60. extern     int _Cdecl directvideo;
  61.  
  62. void      _Cdecl clreol        (void);
  63. void      _Cdecl clrscr        (void);
  64. void      _Cdecl delline        (void);
  65. int     _Cdecl gettext        (int left, int top, int right, int bottom,
  66.                  void *destin);
  67. void     _Cdecl gettextinfo    (struct text_info *r);
  68. void      _Cdecl gotoxy        (int x, int y);
  69. void     _Cdecl highvideo    (void);
  70. void      _Cdecl insline        (void);
  71. void     _Cdecl lowvideo    (void);
  72. int     _Cdecl movetext    (int left, int top, int right, int bottom, 
  73.                  int destleft, int desttop);
  74. void     _Cdecl normvideo    (void);
  75. int     _Cdecl puttext        (int left, int top, int right, int bottom,
  76.                  void *source);
  77. void     _Cdecl textattr    (int newattr);
  78. void      _Cdecl textbackground    (int newcolor);
  79. void      _Cdecl textcolor    (int newcolor);
  80. void      _Cdecl textmode    (int newmode);
  81. int       _Cdecl wherex        (void);
  82. int       _Cdecl wherey        (void);
  83. void      _Cdecl window        (int left, int top, int right, int bottom);
  84. #endif
  85.  
  86. char    *_Cdecl cgets        (char *str);
  87. int       _Cdecl cprintf        (const char *format, ...);
  88. int     _Cdecl cputs        (const char *str);
  89. int     _Cdecl cscanf        (const char *format, ...);
  90. int     _Cdecl getch        (void);
  91. int     _Cdecl getche        (void);
  92. char    *_Cdecl getpass        (const char *prompt);
  93. int     _Cdecl kbhit        (void);
  94. int     _Cdecl putch        (int c);
  95. int     _Cdecl ungetch        (int ch);
  96.  
  97. #endif
  98.